package net.huashitong.ssydt.provider.task.service;


import net.huashitong.ssydt.base.dao.LongMapper;
import net.huashitong.ssydt.base.service.AbstractLongService;
import net.huashitong.ssydt.provider.task.mapper.SsTaskTaskMapper;
import net.huashitong.ssydt.task.entity.SsTaskTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2018.01.22
 */
@Service
@Transactional
public class SsTaskTaskServiceImpl extends AbstractLongService<SsTaskTask> implements SsTaskTaskService {

    private SsTaskTaskMapper mapper;

    @Autowired
    public SsTaskTaskServiceImpl(SsTaskTaskMapper mapper) {
        this.mapper = mapper;
    }

    @Override
    protected LongMapper<SsTaskTask> getLongMapper() {
        return this.mapper;
    }

    @Override
    public List<SsTaskTask> findByEnable() {
        return this.mapper.findByEnable();
    }
}
